Skip to content

Date CSV export filenames - #32

Merged
ahernsean merged 1 commit into
mainfrom
codex/csv-export-dated-filename
Sep 28, 2026
Merged

ahernsean merged 1 commit into
mainfrom
codex/csv-export-dated-filename

Conversation

@ahernsean

Copy link
Copy Markdown
Owner

Include the current America/New_York date in the HTTP and mobile-share CSV filename, with web and WebKit coverage.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae8c7abad0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread driving_log/templates/imports.html Outdated
<h1>Imports and exports</h1>
<section class="actions">
<a class="button primary" href="/csv/export" data-file-export data-export-filename="driving-log.csv">Download CSV backup</a>
<a class="button primary" href="/csv/export" data-file-export data-export-filename="{{ csv_export_filename }}">Download CSV backup</a>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Derive the share filename when the export is requested

When /imports remains open across midnight in America/New_York, this attribute retains the previous day's filename. The mobile export handler captures that render-time value in app.js and uses it to construct the shared File, ignoring the fresh Content-Disposition returned by /csv/export, so an export made after midnight is still named with yesterday's date. Derive the filename from the export response or otherwise refresh it when the user requests the export.

Useful? React with 👍 / 👎.

@ahernsean
ahernsean force-pushed the codex/csv-export-dated-filename branch from ae8c7ab to b6d7667 Compare September 28, 2026 17:39
@ahernsean
ahernsean enabled auto-merge September 28, 2026 17:40
@ahernsean
ahernsean merged commit 150da37 into main Sep 28, 2026
5 checks passed
@ahernsean
ahernsean deleted the codex/csv-export-dated-filename branch September 28, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant